import request from '@/utils/request'

export const ConfigApi = {
    /**
     *  获取所有配置
     * @returns
     */
    getAllConfig: () => {
        return request({
            url: '/manage/system/config/getAllConfig',
            method: 'get'
        })
    },
    /**
     *  修改配置
     * @returns
     */
    updateConfig: (data) => {
        return request({
            url: '/manage/system/config/updateConfig',
            data,
            method: 'post'
        })
    },

    /**
     *  获取所有配置
     * @returns
     */
    getDashboardData: () => {
        return request({
            url: '/manage/system/config/getDashboardData',
            method: 'get'
        })
    },

}
